﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Pages/Inicio.master" AutoEventWireup="false" CodeFile="OrdenServicioCierre.aspx.vb" Inherits="Pages_Default" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:UpdatePanel ID="uppCierre" runat="server">
        <ContentTemplate>

            <div class="estandardiv">
                <br />
                <div class="subtittle">Cierre de Ordenes On Site</div>
                <br />
                <center>
                    <table style="width:650px">
                        <tr><td class="textright">Orden</td>
                            <td class="textleft">
                                <asp:TextBox ID="txbOrden" runat="server" CssClass="textleft"></asp:TextBox>
                            </td>
                            <td class="textright">Caso</td>
                            <td class="textleft">
                                <asp:TextBox ID="txbCaso" runat="server" CssClass="textleft"></asp:TextBox>
                            </td>
                            <td class="textright">Fecha</td>
                            <td class="textleft">
                                <asp:TextBox ID="txbInicio" runat="server" CssClass="textleft" MaxLength="10" Width="60px"></asp:TextBox>
                                <asp:CalendarExtender ID="txbInicio_CalendarExtender" runat="server" Enabled="True" TargetControlID="txbInicio" Format="dd/MM/yyyy">
                                </asp:CalendarExtender>
                                &nbsp;al&nbsp;
                                <asp:TextBox ID="txbTermino" runat="server" CssClass="textleft" MaxLength="10" Width="60px"></asp:TextBox>
                                <asp:CalendarExtender ID="txbTermino_CalendarExtender" runat="server" Enabled="True" TargetControlID="txbTermino" Format="dd/MM/yyyy">
                                </asp:CalendarExtender>
                            </td>
                            <td class="textleft">
                                <asp:ImageButton ID="ibtnBuscar" runat="server" ImageUrl="~/Images/texto/btnBuscar.png" />
                            </td>
                        </tr>
                    </table>
                    <br />
                    <table style="width:90%">
                        <tr><td>

                <asp:GridView ID="gridCierres" runat="server" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Width="100%" AllowPaging="True" AutoGenerateColumns="False" PageSize="20">
                    <Columns>
                        <asp:BoundField DataField="Orden" HeaderText="Orden" SortExpression="Orden">
                        <ItemStyle Width="40px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Fecha" HeaderText="Fecha" SortExpression="Fecha">
                        <ItemStyle Width="60px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Caso" HeaderText="Caso" SortExpression="Caso">
                        <ItemStyle Width="90px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Garantia" HeaderText="Garantía" SortExpression="Garantia">
                        <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Cliente" HeaderText="Cliente" SortExpression="Cliente" />
                        <asp:BoundField DataField="Equipo" HeaderText="Equipo" SortExpression="Equipo" />
                        <asp:BoundField DataField="Serie" HeaderText="Serie" SortExpression="Serie">
                        <ItemStyle Width="90px" />
                        </asp:BoundField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:ImageButton ID="ibtnNota" runat="server" CommandName="cnNota" ImageUrl="~/Images/img/verNota.png" />
                                &nbsp;<asp:ImageButton ID="ibtnAgendar" runat="server" CommandName="cnAgendar" Height="17px" ImageUrl="~/Images/img/calendario.png" ToolTip="Devolver a Agenda" Width="20px" />
                                &nbsp;<asp:ImageButton ID="ibtnCerrar" runat="server" ImageUrl="~/Images/img/candado.png" />
                            </ItemTemplate>
                            <ItemStyle Width="80px" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                    </asp:GridView>
                         </td></tr>
                        <tr><td class="textleft">
                            <asp:Label ID="LblTotal" runat="server" Text="Total: 0 Registros"></asp:Label>
                            </td></tr>
                    </table>
                </center>
            </div>           
                       
        </ContentTemplate>
    </asp:UpdatePanel>

</asp:Content>

